/*
  @createStore --创建一个store
  @compose --组合多个store
  @applyMiddleware --dispatch扩展
 */
/* eslint-disable import/no-extraneous-dependencies */
import { createStore, compose, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import createLogger from 'redux-logger'; // 打印状态变化信息
import reducers from './reducers'; // 引入主reducer

const logger = createLogger();
const store = createStore(reducers, compose(applyMiddleware(thunk, logger)));

export default store;
